import java.util.Scanner;

public class HJ22 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextLine()) {
            int number = Integer.parseInt(sc.nextLine());
            if(number != 0){
                System.out.println(number/2);
            }
        }
    }
}
